﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master"  AutoEventWireup="false" CodeFile="Departamentos.aspx.vb" Inherits="Departamentos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

        <table style="width: 651px; height: 441px;" >
            <tr>
                <td align="center" style="height: 30px" colspan="2">
                <asp:Label ID="Label27" runat="server" Font-Size="Large" ForeColor="#9966FF" 
                    Text="Administracion de Departamentos"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="height: 30px">
                    &nbsp;</td>
                <td align="left" style="height: 30px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="height: 30px">
                    <asp:Label ID="Label1" runat="server" Text="Id departamento:"></asp:Label>
                </td>
                <td align="left" style="height: 30px">
                    <asp:TextBox ID="txtIdDepartamento" runat="server" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" style="height: 28px">
                    <asp:Label ID="Label2" runat="server" Text="Departamento:"></asp:Label>
                </td>
                <td align="left" style="height: 28px">
                    <asp:TextBox ID="txtDepartamento" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" style="height: 28px">
                    <asp:Label ID="Label3" runat="server" Text="Jefe:"></asp:Label>
                </td>
                <td align="left" style="height: 28px">
                    <asp:DropDownList ID="ddlJefe" runat="server">
                    </asp:DropDownList>
                    </td>
            </tr>
            <tr>
                <td style="height: 20px">
                    </td>
                <td style="height: 20px">
                    </td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="height: 32px">
                    <asp:Button ID="btnNuevo" runat="server" Text="Nuevo" 
                        CausesValidation="False" />
                    <asp:Button ID="btnAceptar" runat="server" Text="Aceptar" />
                    <asp:Button ID="btnCancelar" runat="server" CausesValidation="False" 
                        Text="Cancelar" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" align="center" valign="top">
                    <asp:GridView ID="gvDepartamentos" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" DataKeyNames="id_departamento,id_jefe" ForeColor="#333333" 
                        GridLines="None" AllowPaging="True" PageSize="5">
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="id_departamento" HeaderText="Id Departamento" />
                            <asp:BoundField DataField="Departamento" HeaderText="Departamento" />
                            <asp:BoundField DataField="apellido_nombre_jefe" HeaderText="Jefe" />
                            <asp:CommandField ShowSelectButton="True" />
                            <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                                DeleteText="" ShowDeleteButton="True" />
                        </Columns>
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#999999" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <br />
       
    </div>
</asp:Content>
